<div id="themePreview"><?php 
$config = Zend_Registry::get('config');

if (sizeof($this->themes)==0){?>

暂时没有可用的主题

<?php } else {
foreach ($this->themes as $theme) { ?>

<?php  $thumbnails = Theme::getResourceByType($theme,'3');
?>

<div class="thumbnailFrame">
<div class="thumbnailContainer">
<img src="<?php echo $config->baseurl;?>/res/img/<?php echo $thumbnails[0]->filename;?>" />
</div>
<a class="apply" theme_id="<?php echo $theme->id;?>"  rel="address:/deep-link">使用</a> | 
<a class="preview" theme_id="<?php echo $theme->id;?>">预览</a>
</div>
<?php 
}
}
?>
</div>